package com.tuling.netty.splitpackets;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.util.concurrent.EventExecutorGroup;

import java.net.SocketAddress;

public class SplitPacketNettyHandler extends SimpleChannelInboundHandler<MyMessageProtol> {


    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MyMessageProtol msg) throws Exception {
        SocketAddress socketAddress = ctx.channel().remoteAddress();
        System.out.println("接收到客户端是"+socketAddress);

    }
}
